﻿// See https://aka.ms/new-console-template for more information
using ConsoleClientTcp;

Console.WriteLine("Hello, World! ");




var main = new Main();
string lastInput = string.Empty;
while (true)
{
    string input = Console.ReadLine();
    if (input == "e")
    {
        break;
    }
    else if (input == "c")
    {
        main.CreateClient();
    }
    else if (input == "s")
    {
        main.SendMsg(lastInput);
    }
    lastInput = input;
}


